<!--  type 类型,  code 参数 -->
<!--<@c.dictselect type='SYSTEM' code="1" ></@c.dictselect>-->
<#macro dictselect type code>
    <select class=""  id=${type} name=${type} lay-filter=${type}>
        <#if code == null >
            <option value="">请选择</option>
        </#if>
        <#list getDict(type) as  dict>
            <#if code == dict.code>
                <option value="${dict.code}" selected>${dict.codename}</option>
                <#else>
                    <option value="${dict.code}">${dict.codename}</option>
            </#if>
        </#list>
    </select>
</#macro>

<#macro dictspan type code>
    <#list getDict(type) as  dict><#if code ==dict.code>${dict.codename}</#if></#list>
</#macro>
